home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / xmsif15.zip / EXMAKEBC next >
Text File  |  1991-12-08  |  5KB  |  153 lines

  1. #
  2. # EXAMPLE MAKEFILE FOR XMSTEST TESTER/EXAMPLE PROGRAM FOR XMSIF
  3. # BORLAND C++ 2.0
  4. # 12/08/91
  5. #
  6. #   This is an example makefile for Borland C++, to make the XMSTEST
  7. # tester/example program in any of the six supported memory models. It is
  8. # compatible with the MAKE utility provided with the compiler. As supplied,
  9. # it is set up to compile the in-line assembly versions of the functions in
  10. # TESTUTIL.C. If you wish to use the in-line assembly code (it improves
  11. # execution speed significantly), you do not need to make any changes.
  12. # If you do not wish to use the in-line assembly code, simply remove
  13. # "-DINLINE_ASM" from the line that begins "CFLAGS".
  14. #
  15. #   Before using this makefile, make sure that the Borland MAKE utility and
  16. # the appropriate command-line compiler and linker are in your path. The
  17. # four source files (XMSTEST.C, XMSTEST2.C, XMSTEST3.C, and TESTUTIL.C), the
  18. # header files (XMSTEST.H, TESTUTIL.H, and XMSIF.H), the appropriate library
  19. # or libraries (XMSIF*.LIB), and STACK.OBJ (if making the tiny-model example)
  20. # should all be in the current directory. TLINK is assumed to know where the
  21. # standard objects and libraries are (this should be set up in a file
  22. # TLINK.CFG which should be in the same directory as TLINK.EXE; see the
  23. # manuals for more information).
  24. #
  25. #   To use the makefile, type "make -fexmakebc target", where 'target' is
  26. # one or more of tiny, small, medium, compact, large, or huge, separated by
  27. # spaces. For example, "make -fexmakebc tiny" would make the tiny-model
  28. # example and "make -fexmakebc small large" would make the small- and large-
  29. # model examples. "make -fexmakebc" will make the test programs for all
  30. # memory models.
  31. #
  32.  
  33. CC    = bcc
  34. CFLAGS    = -c -d -DINLINE_ASM
  35.  
  36. LINK    = tlink
  37. LF    = /c /x
  38.  
  39.  
  40. all:        tiny small medium compact large huge
  41.  
  42. tiny:        txmstest
  43.  
  44. small:        sxmstest
  45.  
  46. medium:        mxmstest
  47.  
  48. compact:    cxmstest
  49.  
  50. large:        lxmstest
  51.  
  52. huge:        hxmstest
  53.  
  54.  
  55. txmstest.obj:    xmstest.c xmstest.h testutil.h
  56.     $(CC) $(CFLAGS) $(CFLAGS2) -mt -o$< xmstest.c
  57.  
  58. sxmstest.obj:    xmstest.c xmstest.h testutil.h
  59.     $(CC) $(CFLAGS) $(CFLAGS2) -ms -o$< xmstest.c
  60.  
  61. mxmstest.obj:    xmstest.c xmstest.h testutil.h
  62.     $(CC) $(CFLAGS) $(CFLAGS2) -mm -o$< xmstest.c
  63.  
  64. cxmstest.obj:    xmstest.c xmstest.h testutil.h
  65.     $(CC) $(CFLAGS) $(CFLAGS2) -mc -o$< xmstest.c
  66.  
  67. lxmstest.obj:    xmstest.c xmstest.h testutil.h
  68.     $(CC) $(CFLAGS) $(CFLAGS2) -ml -o$< xmstest.c
  69.  
  70. hxmstest.obj:    xmstest.c xmstest.h testutil.h
  71.     $(CC) $(CFLAGS) $(CFLAGS2) -mh -o$< xmstest.c
  72.  
  73. txmstst2.obj:    xmstest2.c xmstest.h testutil.h
  74.     $(CC) $(CFLAGS) -mt -o$< xmstest2.c
  75.  
  76. sxmstst2.obj:    xmstest2.c xmstest.h testutil.h
  77.     $(CC) $(CFLAGS) -ms -o$< xmstest2.c
  78.  
  79. mxmstst2.obj:    xmstest2.c xmstest.h testutil.h
  80.     $(CC) $(CFLAGS) -mm -o$< xmstest2.c
  81.  
  82. cxmstst2.obj:    xmstest2.c xmstest.h testutil.h
  83.     $(CC) $(CFLAGS) -mc -o$< xmstest2.c
  84.  
  85. lxmstst2.obj:    xmstest2.c xmstest.h testutil.h
  86.     $(CC) $(CFLAGS) -ml -o$< xmstest2.c
  87.  
  88. hxmstst2.obj:    xmstest2.c xmstest.h testutil.h
  89.     $(CC) $(CFLAGS) -mh -o$< xmstest2.c
  90.  
  91. txmstst3.obj:    xmstest3.c xmstest.h testutil.h
  92.     $(CC) $(CFLAGS) -mt -o$< xmstest3.c
  93.  
  94. sxmstst3.obj:    xmstest3.c xmstest.h testutil.h
  95.     $(CC) $(CFLAGS) -ms -o$< xmstest3.c
  96.  
  97. mxmstst3.obj:    xmstest3.c xmstest.h testutil.h
  98.     $(CC) $(CFLAGS) -mm -o$< xmstest3.c
  99.  
  100. cxmstst3.obj:    xmstest3.c xmstest.h testutil.h
  101.     $(CC) $(CFLAGS) -mc -o$< xmstest3.c
  102.  
  103. lxmstst3.obj:    xmstest3.c xmstest.h testutil.h
  104.     $(CC) $(CFLAGS) -ml -o$< xmstest3.c
  105.  
  106. hxmstst3.obj:    xmstest3.c xmstest.h testutil.h
  107.     $(CC) $(CFLAGS) -mh -o$< xmstest3.c
  108.  
  109. ttstutil.obj:    testutil.c testutil.h
  110.     $(CC) $(CFLAGS) -mt -o$< testutil.c
  111.  
  112. ststutil.obj:    testutil.c testutil.h
  113.     $(CC) $(CFLAGS) -ms -o$< testutil.c
  114.  
  115. mtstutil.obj:    testutil.c testutil.h
  116.     $(CC) $(CFLAGS) -mm -o$< testutil.c
  117.  
  118. ctstutil.obj:    testutil.c testutil.h
  119.     $(CC) $(CFLAGS) -mc -o$< testutil.c
  120.  
  121. ltstutil.obj:    testutil.c testutil.h
  122.     $(CC) $(CFLAGS) -ml -o$< testutil.c
  123.  
  124. htstutil.obj:    testutil.c testutil.h
  125.     $(CC) $(CFLAGS) -mh -o$< testutil.c
  126.  
  127.  
  128. txmstest:    txmstest.obj txmstst2.obj txmstst3.obj ttstutil.obj stack.obj \
  129.         xmsifs.lib
  130.     $(LINK) $(LF) c0t txmstest txmstst2 txmstst3 ttstutil stack, \
  131.             txmstest, , cs xmsifs
  132.  
  133. sxmstest:    sxmstest.obj sxmstst2.obj sxmstst3.obj ststutil.obj xmsifs.lib
  134.     $(LINK) $(LF) c0s sxmstest sxmstst2 sxmstst3 ststutil, \
  135.             sxmstest, , cs xmsifs
  136.  
  137. mxmstest:    mxmstest.obj mxmstst2.obj mxmstst3.obj mtstutil.obj xmsifm.lib
  138.     $(LINK) $(LF) c0m mxmstest mxmstst2 mxmstst3 mtstutil, \
  139.             mxmstest, , cm xmsifm
  140.  
  141. cxmstest:    cxmstest.obj cxmstst2.obj cxmstst3.obj ctstutil.obj xmsifc.lib
  142.     $(LINK) $(LF) c0c cxmstest cxmstst2 cxmstst3 ctstutil, \
  143.             cxmstest, , cc xmsifc
  144.  
  145. lxmstest:    lxmstest.obj lxmstst2.obj lxmstst3.obj ltstutil.obj xmsifl.lib
  146.     $(LINK) $(LF) c0l lxmstest lxmstst2 lxmstst3 ltstutil, \
  147.             lxmstest, , cl xmsifl
  148.  
  149. hxmstest:    hxmstest.obj hxmstst2.obj hxmstst3.obj htstutil.obj xmsifh.lib
  150.     $(LINK) $(LF) c0h hxmstest hxmstst2 hxmstst3 htstutil, \
  151.             hxmstest, , ch xmsifh
  152.  
  153.